#ifndef MORSE_H
#define MORSE_H

#include <string>
#include <unordered_map>

class MorseConverter {
public:
    MorseConverter();
    ~MorseConverter();
    
    // 将字符转换为莫尔斯码
    std::string charToMorse(char c) const;
    
    // 将字符串转换为莫尔斯码
    std::string stringToMorse(const std::string& str) const;
    
private:
    std::unordered_map<char, std::string> morseMap;
};

#endif // MORSE_H